home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Documentation / Engineering Notes / Scaling < prev    next >
Encoding:
Text File  |  1996-09-19  |  1.2 KB  |  17 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                      
  5. Scaling 
  6. ODF Release 2                                                                                                                                                             
  7.  
  8.  
  9. Scaling is implemented by the class FW_CScroller with the following API:
  10.  
  11. void ScaleBy(Environment* ev, const FW_CPoint& scaling, FW_CGraphicContext* gc = NULL)
  12.  
  13. Scaling is done by the factor passed in the "scaling" parameter, which must not be equal to FW_kZeroPoint. ScaleBy optionally takes a graphic context which is adjusted to reflect the new internal frame transform. All scrolling views are affected by the scaling  (see ODFDraw and its rulers). Views that only scroll vertically  are only affected by the vertical scaling factor. Views that only scroll horizontally are only affected by the horizontal scaling factor. 
  14.  
  15.  
  16. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  17. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.